﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{

    protected void unLoginMenu_MenuItemClick(object sender, MenuEventArgs e)
    {
        
        ApplyTheme(e.Item.Value);
    }
    protected void ApplyTheme(string themeName)
    {
        if(Session["Theme"]!=null)
        {
            Session.Remove("Theme");
        }
        Session.Add("Theme", themeName);
        Response.Redirect(HttpContext.Current.Request.Url.PathAndQuery);
    }


}
